CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(WBSM4)

# 包含头文件目录
include_directories(include)


# 收集源代码
file(GLOB WBSM4_SRC src/*.c src/WBMatrix/*.c)

# 创建库
add_library(WBSM4_LIB ${WBSM4_SRC})

# 创建可执行文件
add_executable(WBSM4 test/main.c)

# 链接库到可执行文件
target_link_libraries(WBSM4 WBSM4_LIB)

# 设置编译选项
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -O2")
